@extends('contest/layouts/default')
@section('title')
{{ $data['contest']->title }}
@stop
@section('content')
<div class="af">
    <div class="wapper" style="padding: 0">
        <div class="default-width-left">
            <div class="menu-prive">
                @include('contest/contents/includes/menu-prive',array('event'=>$data['contest']))
            </div>
            <div class="title-tab positionR">
                <div class="tab">
                    <ul>
                        <li>
                            <a href="<?= route('cuoc-thi', array('slug' => $data['slug'], 'id' => $data['id'])) ?>"
                               class="<?= ($data['order'] == 'id' || $data['order'] == '') ? "active" : "" ?>">
                                Mới đăng
                            </a>
                        </li>
                        <li>
                            <a href="<?= route('cuoc-thi', array('slug' => $data['slug'], 'id' => $data['id'], 'order' => 'views')) ?>"
                               class="<?= ($data['order'] == 'views') ? "active" : "" ?>">Xem nhiều</a>
                        </li>
                        <li>
                            <a href="<?= route('cuoc-thi', array('slug' => $data['slug'], 'id' => $data['id'], 'order' => 'votes')) ?>"
                               class="<?= ($data['order'] == 'votes') ? "active" : "" ?>">Bình chọn</a>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="box-list">
                @include('contest/includes/box-video',array('videos'=>$data['videos']))
            </div>
            <div class="MgT20">
                <div class="title" style="width: 100%">
                    <label>Bản tin sàn diễn</label>
                </div>
                <div class="box-news">
                    @include('contest/includes/box-news',array('data'=>$data))
                </div>
            </div>
        </div>
        <div class="default-width-right">
            <div class="event">
                @include('contest/contents/includes/timer-contest',array('contest'=>$data['contest']))
            </div>
        </div>
    </div>
</div>
@stop